const Router = require('koa-router')
const { route } = require('./list/list')
const router = new Router()
const list = require('./list/list')
const home = require('./home/home')
const banner = require('./banner/banner')
const login = require('./login/login')

router.use('/home', home.routes(), router.allowedMethods())
router.use('/list', list.routes(), router.allowedMethods())
router.use('/banner', banner.routes(), router.allowedMethods())
router.use('/login', login.routes(), router.allowedMethods())

router.redirect('/', '/home')
module.exports = router
